#ifndef ITEMWRITER_H
#define ITEMWRITER_H

#include <QXmlStreamWriter>
#include <QTreeWidget>

class itemWriter
{
public:
     itemWriter(QTreeWidget* treeWidget);
     bool writeFile(QIODevice* device);
     int getItemCount();

private:
     void writeItems(QTreeWidgetItem* item);
     QXmlStreamWriter writer;
     QTreeWidget* treeWidget;
     int itemCount;
};

#endif // ITEMWRITER_H
